package com.joolun.cloud.weixin.common.feign;


import com.joolun.cloud.weixin.common.constant.ServiceNameConstants;
import com.pig4cloud.pigx.common.core.constant.SecurityConstants;
import com.pig4cloud.pigx.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author
 */
@FeignClient(contextId = "feignIecgUserInfoService", value = ServiceNameConstants.KASOFT_IECG_API)
public interface FeignIecgUserInfoService {

	/**
	 * 新增商城用户
	 * @param openid
	 * @param from
	 * @return
	 */
	@GetMapping("app/user/info/openid/{openid}")
	R infoByOpenId(@PathVariable("openid") String openid, @RequestHeader(SecurityConstants.FROM) String from);
}
